<!-- 垂直方向带图标的按钮 -->
<template>
  <div class="dis-flex alc">
    <div class="my-icon-button">
      <slot></slot>
      <div style="font-size: 14px;">{{ props.title }}</div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  title: {
    type: String,
    required: true
  }
})
</script>

<style lang="scss" scoped>
.my-icon-button {
  color: #6a7ba1;
  border-radius: 4px;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  padding: 4px 6px;
  cursor: pointer;
  &:hover {
    background-color: #f2f2f2;
  }
}
</style>
